package com.kingmed.kmss.bpmn.modules.backup.mapper;

import java.util.List;

import com.kingmed.kmss.bpmn.modules.backup.model.BizApprovalStatus;
import com.kingmed.kmss.bpmn.modules.backup.model.BizApprovalTrail;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 审批追踪表 Mapper 接口
 * </p>
 *
 * @author wzg
 * @since 2023-02-19
 */
public interface BizApprovalTrailMapper extends BaseMapper<BizApprovalTrail> {

	List<BizApprovalTrail> getProcInstIdByBiz(@Param("bizType") String bizType, @Param("bizId") String bizId);

	List<BizApprovalTrail> getMyApprovedBusiness(@Param("bizType") String bizType, @Param("approvedBy") String approvedBy,
			@Param("excludeDesc") String excludeDesc);

	Page<BizApprovalStatus> getMySubmitted(@Param("userId") String userId, @Param("bizType") String bizType, @Param("currApprover") String currApprover,
										   @Param("auditStatus") String auditStatus, @Param("startTime") String startTime,
										   @Param("endTime") String endTime, Page<BizApprovalStatus> page, @Param("requestByName")String requestByName);

}
